package com.zhou;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.stereotype.Component;

/**
 * @author Mr.zhou
 */

@Component
public class Task {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @MessageMapping("${aws.sqs}")
    public void saveBill(String message){
        logger.info("aws sqs message：{}", message);
    }
}
